/**
 * 
 */
package de.jmda.core.util.classpath;

import java.io.File;

abstract class ResourceContainerBase
		implements ResourceContainer
{
	protected File containerFile;

	/**
	 * @param containerFile
	 * @throws ExceptionInInitializerError if <code>containerFile</code> does
	 *         not exist
	 */
	ResourceContainerBase(File containerFile)
			throws ExceptionInInitializerError
  {
    super();
    
    if (containerFile.exists() == false)
    {
    	throw new ExceptionInInitializerError(
    			containerFile.getAbsolutePath() + " not found");
    }

    this.containerFile = containerFile;
  }

	@Override
  public File getResourceContainerFile()
  {
	  return containerFile;
  }
}